<table>
    <caption>${sheetName}</caption>
    <thead>
    <tr>
        <th colspan="12" style="background-color: #eeeff1; border-bottom: 1px solid #d9d9d9; font-weight: bold; text-align: center;">${tableName}</th>
    </tr>
    <tr>
        <#list titles as title>
            <th style="background-color: #e0927f; border-bottom: 1px solid #d9d9d9; font-weight: bold; text-align: center; font-weight: bold">${title}</th>
        </#list>
    </tr>
    </thead>
    <tbody>
    <#assign var = 1>
    <#list data as item>
    <#if var%2==1>
        <tr style="background-color: #f2f2f2; display: table-row; vertical-align: inherit;border-color: inherit;">
            <td>${item.code?string}</td>
            <td>${item.name}</td>
            <td>${item.earliestBuyTime}</td>
            <td>${item.latestBuyTime}</td>
            <td>${item.avgHoldNum}</td>
            <td>${item.totalMarketValue}</td>
            <td>${item.avgCost}</td>
            <td>${item.currentPrice}</td>
            <td>${item.todayIncrease}</td>
            <td>${item.avgIncreaseRate}</td>
            <td>${item.avgFloatingProfit}</td>
            <td>${item.holdCount}</td>
        </tr>
    <#else>
        <tr style="display: table-row; vertical-align: inherit;border-color: inherit;">
            <td>${item.code}</td>
            <td>${item.name}</td>
            <td>${item.earliestBuyTime}</td>
            <td>${item.latestBuyTime}</td>
            <td>${item.avgHoldNum}</td>
            <td>${item.totalMarketValue}</td>
            <td>${item.avgCost}</td>
            <td>${item.currentPrice}</td>
            <td>${item.todayIncrease}</td>
            <td>${item.avgIncreaseRate}</td>
            <td>${item.avgFloatingProfit}</td>
            <td>${item.holdCount}</td>
        </tr>
    </#if>
        <#assign var=var + 1>
    </#list>
    </tbody>
</table>
